<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/jsp/comm_css_include.jsp"%>
<!doctype html>
<html>
<head></head>
<body class="gray-bg">

	<!-- 隐藏域 -->
	<input id="busiId" name="busiId" type="hidden" value="${uuid}"/>
	<input id="zjId"   name="zjId"   type="hidden" value="${uuid0}"/>
	<input id="poId"   name="poId"   type="hidden" value="${uuid1}"/>
	<input id="db1Id"  name="db1Id"  type="hidden" value="${uuid2}"/>
	<input id="db2Id"  name="db2Id"  type="hidden" value="${uuid3}"/>
	<input id="db3Id"  name="db3Id"  type="hidden" value="${uuid4}"/>
	<input id="db4Id"  name="db4Id"  type="hidden" value="${uuid5}"/>
	
	<input id="tid" name="tid" type="hidden" value="${tid}"/>
	<input id="hid" name="hid" type="hidden" value="${hid}"/>
	<input id="creditPeopleType" name="text" type="hidden" value="${creditPeopleType}"/>
	<!-- 隐藏域 -->

<div class="container creditbody">
    <div class="iboxtitle">
        <span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;业务受理  > 业务申请 > 征信信息修改</span>
        <a href="javascript:void(0)"></a>
    </div>
    <div class="buttonfixed">
        <button type="button" class="btn dpbtn_blue btnaplly" onclick="save();">修改申请</button>
        <button type="button" class="btn dpbtn_red btnaplly" onclick="translateCredit();">撤销</button>
    </div>
    <div class="ibox-content ibox-con">
        <form class="form-horizontal" id="commentForm">
            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
            	<tr>
            		<td align="right">
						<label class="control-label np">经办部门：</label>
					</td>
					<td>
                        <input id="orgName" name="orgName" type="text" class="form-control" value="${current_user_key.orgName}" readOnly=true>
					</td>
					<td align="right">
						<label class="control-label np">经办人：</label>
					</td>
					<td>
                        <input id="parent" name="parent" type="text" class="form-control" value="${current_user_key.name}" readOnly=true>
                        <input id="salersmanIdThen" type="hidden" name="salersmanIdThen" value="${current_user_key.id}">
                        <input id="clientType" type="hidden" name="clientType" value="pc">
					</td>
				</tr>
				<tr>	
            		<td align="right">
						<label class="control-label np">经销商：</label>
					</td>
					<td>
		    			<input  class="form-control" type="hidden" id="business-cho" name="business-cho" />
		    			<input id="p-business-cho"  name="p-business-cho" type="text" class="form-control"  readonly  />
				
					<td align="right">
						<label class="control-label np">业务员：</label>
					</td>
					<td>
						<input  class="form-control" type="hidden" id="salemanId" name="salemanId" />
						<input  class="form-control" type="text" id="salemanName" name="salemanName"  readonly />
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">银行：</label>
					</td>
					<td colspan="3">
						<select id="bankCode" name="bankCode" class="form-control" disabled="disabled">
							&nbsp;
						</select>
					</td>	
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">退回原因：</label>
					</td>	
					<td colspan="3">
		    			<input id="reason_back"  name="reason_back" type="text" class="form-control" readonly="readonly" />
					</td>
				</tr>
				<tr>	
					<td align="right">
						<label class="control-label np">退回备注：</label>
					</td>
					<td colspan="3">
						<input id="remarks" name="remarks"  class="form-control" type="text"  readonly="readonly" />
					</td>
				</tr>
            </table>
        </form>
        <form class="form-horizontal" id="commentFormb">  
            <div id="ZHUJIERENMESSAGE">
            	<div class="business-manwife">客户信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">客户姓名：</label>
						</td>
	            	
						<td>
							<input id="subCustomer_cusName" name="subCustomer_cusName" required="required" minlength="1" maxlength="50" type="text" class="form-control" required="" aria-required="true" placeholder="请输入客户姓名(必填)"  readonly="readonly"/>
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="subCustomer_cusNo" name="subCustomer_cusNo" onkeyup="toUpperCase(this)" required="required" minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证(必填)" readonly="readonly"/>
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="subCustomer_phone" placeholder="手机号码"   name="subCustomer_phone" minlength="11" maxlength="11" type="text" class="form-control" readonly="readonly"/>
						</td>
					</tr>
	            </table>
            	<div class="zx-addimg" id="keHuImg" name="keHuImg">&nbsp;</div>
            </div>
            
            <div id="PEIOUMESSAGE">
	            <div class="business-manwife">配偶信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">配偶姓名：</label>
						</td>
	            	
						<td>
							<input id="po_cusName" name="po_cusName" minlength="1" maxlength="50" type="text" class="form-control"  aria-required="true" placeholder="请输入配偶姓名">
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="po_cusNo" name="po_cusNo" onkeyup="toUpperCase(this)"  minlength="1" maxlength="50" type="text" class="form-control" placeholder="请输入身份证">
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="po_phone" placeholder="手机号码"   name="po_phone" minlength="11" maxlength="11" type="text" class="form-control" />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="PEI_OU_SHEN_FEN_ZHENG_MING">
						<li>
							<img filelabel="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<span filelabelDelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');"/>
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PO_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');"/>
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PEIOU_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');"/>
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.PEIOU_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.PEIOU_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','PEI_OU_SHEN_FEN_ZHENG_MING',false, false,null,null,'${uuid1}');"/>
							</a>
						</li>
					</ul>
	            </div>
	        </div>
            
            <div class="DANBAORENXINXI0" style="display: none;">
	            <div class="business-manwife">担保人信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	            	
						<td>
							<input id="db1_cusName" name="db1_cusName" minlength="1" maxlength="50" type="text" class="form-control inputName"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="db1_cusNo" name="db1_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control inputNo" placeholder="请输入身份证">
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db1_phone" placeholder="手机号码"   name="db1_phone" minlength="11" maxlength="11" type="text" class="form-control inputTel1"  />
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1">
						<li>
							<img filelabel="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB1_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN1_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1', false, false,null,null,'${uuid2}');" />
							</a>
						</li>
					</ul>
	             </div>
	            </div>
	            <div class="DANBAORENXINXI0" style="display: none;">
	            <div class="business-manwife">担保人信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	            	
						<td>
							<input id="db2_cusName" name="db2_cusName" minlength="1" maxlength="50" type="text" class="form-control inputName"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
						
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	            	
						<td>
	                        <input id="db2_cusNo" name="db2_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control inputNo" placeholder="请输入身份证">
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db2_phone" placeholder="手机号码"   name="db2_phone" minlength="11" maxlength="11" type="text" class="form-control inputTel1"/>
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2">
						<li>
							<img filelabel="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB2_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN2_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2', false, false,null,null,'${uuid3}');" />
							</a>
						</li>
					</ul>
	            </div>
	            </div>
	            <div class="DANBAORENXINXI0" style="display: none;">
	            <div class="business-manwife">担保人信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	
						<td>
							<input id="db3_cusName" name="db3_cusName" minlength="1" maxlength="50" type="text" class="form-control inputName"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
	
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	
						<td>
	                           <input id="db3_cusNo" name="db3_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control inputNo" placeholder="请输入身份证">
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db3_phone" placeholder="手机号码"   name="db3_phone" minlength="11" maxlength="11" type="text" class="form-control inputTel1"/>
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3">
						<li>
							<img filelabel="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB3_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
						<li>
							<img filelabel="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }">
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN3_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
								<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
							</div>
							<a href="javascript:void(0);" class="file">
								
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3', false, false,null,null,'${uuid4}');" />
							</a>
						</li>
					</ul>
	            </div>
	         </div>
	          <div class="DANBAORENXINXI0" style="display: none;">
	            <div class="business-manwife">担保人信息</div>
	            <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table zx-addtable">
	            	<tr>
	            		<td align="right">
							<label class="control-label np">担保人姓名：</label>
						</td>
	
						<td>
							<input id="db4_cusName" name="db4_cusName" minlength="1" maxlength="50" type="text" class="form-control inputName"  aria-required="true" placeholder="请输入担保人姓名">
						</td>
	
						<td align="right">
							<label class="control-label np">身份证：</label>
						</td>
	
						<td>
	                           <input id="db4_cusNo" name="db4_cusNo" onkeyup="toUpperCase(this)" minlength="1" maxlength="50" type="text" class="form-control inputNo" placeholder="请输入身份证">
						</td>
						
						<td align="right">
							<label class="control-label np">手机号码：</label>
						</td>
	            	
						<td>
	                        <input id="db4_phone" placeholder="手机号码"   name="db4_phone" minlength="11" maxlength="11" type="text" class="form-control inputTel1"/>
						</td>
					</tr>
	            </table>
	            <div class="zx-addimg">
					<ul id="DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4">
					<li>
						<img filelabel="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"
						src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">
						<div class="img-layer">
							<div></div>
							<span filelabelLabelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>
						</div>
						<div filelabelDiv="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">
							<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
							<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
						</div>
						<a href="javascript:void(0);" class="file">
							
							<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
						</a>
					</li>
					<li>
						<img filelabel="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }"
						src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }">
						<div class="img-layer">
							<div></div>
							<span filelabelLabelSpan="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>
						</div>
						<div filelabelDiv="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">
							<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DB4_SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
							<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
						</div>
						<a href="javascript:void(0);" class="file">
							
							<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
						</a>
					</li>
					<li>
						<img filelabel="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }"
						src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }">
						<div class="img-layer">
							<div></div>
							<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }</span>
						</div>
						<div filelabelDiv="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">
							<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
							<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
						</div>
						<a href="javascript:void(0);" class="file">
							
							<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
						</a>
					</li>
					<li>
						<img filelabel="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }"
						src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }">
						<div class="img-layer">
							<div></div>
							<span filelabelLabelSpan="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }</span>
						</div>
						<div filelabelDiv="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">
							<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.DANBAOREN4_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>
							<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>
						</div>
						<a href="javascript:void(0);" class="file">
							
							<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZXCX}','DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4', false, false,null,null,'${uuid5}');" />
						</a>
					</li>
				  </ul>
	            </div>
	         </div>
	       </div>
        </form>    
    </div>

</div>

<!-- public quote -->
<%@include file="/jsp/comm_js_include.jsp" %>

<!-- 文件上传 -->
<%@include file="/jsp/common_fileupload_include.jsp"%>
<!-- custom js -->
<script type="text/javascript" src="${basePath}/js/sqCZX/sqczx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
<!-- 
	业务受理 业务申请 申请征信	
 -->
<script type="text/javascript">
	
	var zx_credit_query_id = "";
	var zx_query_credit_apply_sub_id = "";
	var zx_query_credit_apply_id = "";
	
	var cusName = "";
	var cusNo = "";

	jQuery(function($){
		getInitData();
	
	});
	
	//附件显示
	var getInitData = function()
	{
		
		var creditPeopleType = $('#creditPeopleType').val();
		
		if(creditPeopleType == "主借人")
		{
			$('#ZHUJIERENMESSAGE').show();
			$('#PEIOUMESSAGE').hide();
			var objs = '<ul id="SHEN_FEN_ZHENG_MING">'
						 + '<li>'
							 + '<img filelabel="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }"/>'
							 	+ '<span filelabelDelSpan="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,\'${attachmentLabelNameValues.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }\',false);"></span>'
							 + '<div class="img-layer">'
							 + '<div></div>'
							 	+ '<span filelabelLabelSpan="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }">${attachmentLabelNameValues.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }</span>'
							 + '</div>'
							 + '<div filelabelDiv="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" class="hidden button-des">'
								 + '<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_ZHENG_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>'
								 + '<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>'
					 		+ '</div>'
							+ '<a href="javascript:void(0);" class="file">'
								+ '<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,\'${modeIDTypeNames.ZXCX}\',\'SHEN_FEN_ZHENG_MING\',false, false,null,null,\'${uuid0}\');"/>'
							+ '</a>'
					 	+ '</li>'
					 	+ '<li>'
						 	+ '<img filelabel="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }" src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }">'
						 		+ '<span filelabelDelSpan="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,\'${attachmentLabelNameValues.SHEN_FEN_ZHENG_MING_FAN_MIAN }\',false);"></span>'
						 	+ '<div class="img-layer">'
						 	+ '<div></div>'
						 		+ '<span filelabelLabelSpan="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }">${attachmentLabelNameValues.SHEN_FEN_ZHENG_MING_FAN_MIAN }</span>'
						 	+ '</div>'
						 	+ '<div filelabelDiv="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }" class="hidden button-des">'
							 	+ '<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.SHEN_FEN_ZHENG_MING_FAN_MIAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>'
							 	+ '<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>'
						 	+ '</div>'
						 	+ '<a href="javascript:void(0);" class="file">'
							 	+ ''
							 	+ '<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,\'${modeIDTypeNames.ZXCX}\',\'SHEN_FEN_ZHENG_MING\',false, false,null,null,\'${uuid0}\');"/>'
						 	+ '</a>'
					 	+ '</li>'
					 	+ '<li>'
						 	+ '<img filelabel="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }" src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }">'
						 		+ '<span filelabelDelSpan="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,\'${attachmentLabelNameValues.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }\',false);"></span>'
						 	+ '<div class="img-layer">'
						 	+ '<div></div>'
						 		+ '<span filelabelLabelSpan="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }">${attachmentLabelNameValues.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }</span>'
						 	+ '</div>'
						 	+ '<div filelabelDiv="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }" class="hidden button-des">'
							 	+ '<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_SHOU_QUAN_SHU }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>'
							 	+ '<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>'
						 	+ '</div>'
						 	+ '<a href="javascript:void(0);" class="file">'
							 	+ ''
							 	+ '<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,\'${modeIDTypeNames.ZXCX}\',\'SHEN_FEN_ZHENG_MING\',false, false,null,null,\'${uuid0}\');"/>'
						 	+ '</a>'
				 	   + '</li>'
				 	  + '<li>'
					 	+ '<img filelabel="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }" src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }">'
					 		+ '<span filelabelDelSpan="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,\'${attachmentLabelNameValues.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }\',false);"></span>'
					 	+ '<div class="img-layer">'
					 	+ '<div></div>'
					 		+ '<span filelabelLabelSpan="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }">${attachmentLabelNameValues.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }</span>'
					 	+ '</div>'
					 	+ '<div filelabelDiv="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }" class="hidden button-des">'
						 	+ '<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.ZHUJIEREN_ZHENG_XIN_QIANZIZHAO }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png" >下载</a>'
						 	+ '<a type="button" class="abuttonStyleri" onclick="showImg(this);">详情</a>'
					 	+ '</div>'
					 	+ '<a href="javascript:void(0);" class="file">'
						 	+ ''
						 	+ '<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,\'${modeIDTypeNames.ZXCX}\',\'SHEN_FEN_ZHENG_MING\',false, false,null,null,\'${uuid0}\');"/>'
					 	+ '</a>'
			 	      + '</li>'
					 + '</ul>';
			$('#keHuImg').html(objs);
			
			$('#subCustomer_cusName').attr("readonly",false);
			$('#subCustomer_cusNo').attr("readonly",false);
			$('#subCustomer_phone').attr("readonly",false);
		}
		else if(creditPeopleType == "配偶")
		{
			$('#ZHUJIERENMESSAGE').show();
			$('#PEIOUMESSAGE').show();
			$('#SHEN_FEN_ZHENG_MING').hide();
			var objs = ''
				 + '<div class="padding-nono padding-nonob">'
					 + '<div class="zx-addimg">'
					 	+ '<ul id="SHEN_FEN_ZHENG_MING"></ul>'
					 + '</div>'
				 + '</div>';
			$('#keHuImg').html(objs);
		}
		else
		{
			$('#PEIOUMESSAGE').hide();
			$('#SHEN_FEN_ZHENG_MING').hide();
			
			var objs = ''
					 + '<div class="padding-nono padding-nonob">'
						 + '<div class="zx-addimg">'
						 	+ '<ul id="SHEN_FEN_ZHENG_MING"></ul>'
						 + '</div>'
					 + '</div>';
			$('#keHuImg').html(objs);
		}
		
		var id = $('#busiId').val();
		var tid = $('#tid').val();
		
		$.dpAjax({
	   		url:'${basePath}/YwShenQingZxController/getSQServiceById',
	   		data:{
	   			"id":tid
	   		},
			success: function(datas)
			{
		 	  if(datas.flag == "100100")
		 	  {
		 		  
		 		  //显示银行
				  var b = datas.LoanBank_result;
				  var objs = '';
				  for(var key in b)
				  {
					  objs += '<option value="'+key+'">'+b[key]+'</option>';		  
				  }
				  $('#bankCode').html(objs);
				  
				  //征信子表数据显示  配偶  担保人
				  //图片显示
				  var d = datas.result[0];
		 		  showAttentment(d.replaceId,'', '${modeIDTypeNames.ZXCX }',d.tid,function(){
		 		  	  $('.DANBAORENXINXI0').each(function(){
		 		  		 var imgs = $(this).find("img");
		 			     var fileid = $(imgs).attr("fileid");
		 			     var dataid = $(imgs).attr("dataid");
		 			     var subDataid = $(imgs).attr("subDataid");
		 			     
		 			     if(subDataid == d.tid)
		 			     {
		 			    	$(this).show();
							//数据内容展示		 			    	
		 			    	$(this).find('.inputName').val(d.cusName);
		 			    	$(this).find('.inputNo').val(d.cusNo);
		 			    	$(this).find('.inputTel1').val(d.tel1);
		 			     }
			 		  }); 
		 		   });
		 		  
				  //主借人的数据信息
				  var ku = datas.entityResult[0];
				  $('#business-cho').val(ku.dealerId);
				  $('#p-business-cho').val(ku.dealerName);
				  $('#salemanId').val(ku.salersmanIdThen);
				  $('#salemanName').val(ku.name);
				  
				  $('#subCustomer_cusName').val(ku.cusName);
				  $('#subCustomer_cusNo').val(ku.cusNo);
				  $('#subCustomer_phone').val(ku.tel1);
				  
				  if(creditPeopleType == "配偶")
				  {
					 $('#po_cusName').val(d.cusName);
					 $('#po_cusNo').val(d.cusNo);
					 $('#po_phone').val(d.tel1);
				  }
				  
				  //图片显示
				  showAttentment(d.replaceId,'', '${modeIDTypeNames.ZXCX }','',function(){});
				  
				  //判断此用户是什么银行
				  var bk = document.getElementById("bankCode");
				  for(var i=0;i<bk.length;i++)
				  {
					  if(ku.bankCode == bk[i].value)
					  {
						  bk[i].selected = true;
						  break;
					  }
				  }
				  
				  //各表的主键信息  以此作为修改的条件
				  zx_credit_query_id = d.hid;
				  zx_query_credit_apply_sub_id = d.tid;
				  zx_query_credit_apply_id = d.replaceId;
				  
				  $('#reason_back').val(d.reasonBack);
				  $('#remarks').val(d.remarks);
				  
				  return;
			  }
			  if(datas.flag == "100200"){
				  alert(JSON.stringify(datas));
	              return;
	          }
			  layer.msg(datas.message, {icon: 2});
			}
	   	});
	}

	//程立勇  修改保存 //程立勇修改验证
	var save = function () 
	{	
		var subCustomer = $('#subCustomer_cusNo').val().trim();
		var po = $('#po_cusNo').val().trim();
		var db1 = $('#db1_cusNo').val().trim();
		var db2 = $('#db2_cusNo').val().trim();
		var db3 = $('#db3_cusNo').val().trim();
		var db4 = $('#db4_cusNo').val().trim();
		var idNos = [];
		if(subCustomer != '') {
			idNos.push(subCustomer);
		}
		if(po != '') {
			idNos.push(po);
		}
		if(db1 != '') {
			idNos.push(db1);
		}
		if(db2 != '') {
			idNos.push(db2);
		}
		if(db3 != '') {
			idNos.push(db3);
		}
		if(db4 != '') {
			idNos.push(db4);
		}
		if(idNos.length > 0) {
			for(var i = 0; i < idNos.length; i++) {
				var thisIdNo = idNos[i];
				for(var j = i + 1; j < idNos.length; j++) {
					var targetIdNo = idNos[j];
					if(thisIdNo == targetIdNo) {
						layer.msg("身份证不能重复", {icon: 5});
						return false;
					}
				}
			}
		}
		var validstatus = $("#commentForm").valid();
		if(validstatus){
			if(!validateImg('subCustomer')){
				return;
			}
			if(!validateImg('po')){
				return;
			}
			if(!validateImg('db1')){
				return;
			}
			if(!validateImg('db2')){
				return;
			}
			if(!validateImg('db3')){
				return;
			}
			if(!validateImg('db4')){
				return;
			}
			
			
			var po_cusName = document.getElementById("po_cusName").value.trim();
			var po_cusNo = document.getElementById("po_cusNo").value.trim();
			var db1_cusName = document.getElementById("db1_cusName").value.trim();
			var db1_cusNo = document.getElementById("db1_cusNo").value.trim();
			
			var db2_cusName = document.getElementById("db2_cusName").value.trim();
			var db2_cusNo = document.getElementById("db2_cusNo").value.trim();
			
			var db3_cusName = document.getElementById("db3_cusName").value.trim();
			var db3_cusNo = document.getElementById("db3_cusNo").value.trim();
			
			var db4_cusName = document.getElementById("db4_cusName").value.trim();
			var db4_cusNo = document.getElementById("db4_cusNo").value.trim();
			
			var creditPeopleType = $('#creditPeopleType').val();
			var query_credit_apply_status = 20;
			var credit_query_status = 10;
			var client_type = "pc";
			var dealer_id = document.getElementById("business-cho").value.trim();
			var salemanName = document.getElementById("salemanId").value.trim();
			var bankCode = document.getElementById("bankCode").value.trim();
			
			var subCustomer_cusName = "";
			var subCustomer_cusNo = "";
			var credit_people_type = 03;
			var tel1 = "";
			
			if(creditPeopleType == "主借人")
			{
				subCustomer_cusName = document.getElementById("subCustomer_cusName").value.trim();
				subCustomer_cusNo = document.getElementById("subCustomer_cusNo").value.trim();
				tel1 = $('#subCustomer_phone').val();
				credit_people_type = "03";
			}
			else if(creditPeopleType == "配偶")
			{
				subCustomer_cusName = document.getElementById("po_cusName").value.trim();
				subCustomer_cusNo = document.getElementById("po_cusNo").value.trim();
				tel1 = $('#po_phone').val();
				credit_people_type = "01";
			}
			else if(creditPeopleType == "担保人")
			{
				subCustomer_cusName = cusName;
				subCustomer_cusNo = cusNo;
				credit_people_type = "02";
				
				$('.DANBAORENXINXI0').each(function(){
					 var imgs = $(this).find("img");
				     var subDataid = $(imgs).attr("subDataid");
				     if(subDataid == $('#tid').val())
				     {
				    	 subCustomer_cusName = $(this).find('.inputName').val();
				    	 subCustomer_cusNo = $(this).find('.inputNo').val();
				    	 tel1 = $(this).find('.inputTel1').val();
				     }
		 		}); 
			}
			else
			{
				layer.msg("客户类型操作不正常！", {icon: 2});
				return;
			}
			
			//询问框
			layer.confirm('征信信息修改就绪，是否确认执行？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
			  btn: ['确定','取消'] //按钮
			}, function(){
				layer.closeAll();
				$.dpAjax({
			   		url:'${basePath}/YwShenQingZxController/zxUpdate',
			   		data:{
			   			"zx_credit_query_id":zx_credit_query_id,
			   			"zx_query_credit_apply_sub_id":zx_query_credit_apply_sub_id,
			   			"zx_query_credit_apply_id":zx_query_credit_apply_id,
			   			"dealer_id":dealer_id,
			   			"salersman_id_then":salemanName,
			   			"bank_code":bankCode,
			   			"customer_name":subCustomer_cusName,
			   			"customer_no":subCustomer_cusNo,
			   			"query_credit_apply_status":query_credit_apply_status,
			   			"client_type":client_type,
			   			"credit_people_type":credit_people_type,
			   			"credit_query_status":credit_query_status,
			   			"tel1":tel1
			   		},
					success: function(datas){
				 	  if(datas.flag == "100100")
				 	  {
				 		  layer.msg("修改申请成功", {icon: 6});
				 		  setTimeout(function () {
				 			 window.location.href = "${basePath}/web/ywShouLi/ywShenQing/zxQueryCreditChangeList.jsp";
     				 	  }, 3000);
						  return;
					  }
					  if(datas.flag == "100200"){
						  alert(JSON.stringify(datas));
			              return;
			          }
					  layer.msg(datas.message, {icon: 2});
					}
			   	});
				
			}, function(){
				layer.msg("已取消本次操作！", {icon: 6});
			});
		}
		else{
			layer.msg("有验证未通过，请仔细检查！", {icon: 5});
		}
	}
	
	//撤销
	var translateCredit = function()
	{
		var zxCreditQueryId = zx_credit_query_id;
		
		//询问框
		layer.confirm('确定执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
		 	btn: ['确定','取消'] 
		}, function(){
			layer.closeAll();
			$.dpAjax({
		   		url:'${basePath}/YwShenQingZxController/translateCredit',
		   		data:{"zxCreditQueryId":zxCreditQueryId},
				success: function(datas)
				{
			 	  if(datas.flag == "100100")
			 	  {
			 		  layer.msg(datas.message, {icon: 1});
			 		  setTimeout(function () {
			 			 window.location.href = "${basePath}/web/ywShouLi/ywShenQing/zxQueryCreditChangeList.jsp";
 				 	  }, 3000);
					  return;
				  }
				  if(datas.flag == "100200"){
					  alert(JSON.stringify(datas));
		              return;
		          }
				  layer.msg(datas.message, {icon: 2});
				}
		   	});
		}, function(){
			layer.msg("已取消本次操作！", {icon: 6});
		});
	}
</script>
</body>
</html>
